
<form action="index.php?option=com_certification" method="post" name="adminForm" id="adminForm">
	<fieldset id="filter-bar">
        <div style="float: left; height:30px; vertical-align: middle;">
            <div style="float:left;">
                <label style="line-height: 20px;font-size: 13px;">フィルタ&nbsp;</label>
                <input type="text" name="filter_search" id="filter_search" value="<?php echo $this->list['filter_search']; ?>" class="inputbox medium" style="width:400px;" />
            </div>           
            <div style="float:left;margin: -2px 0px 5px 10px;">
                <button type="submit" class="button">検索</button>
                <button type="button" class="button" onclick="document.id('filter_search').value='';this.form.submit();">クリア</button>
            </div>
        </div>    		
	</fieldset>
    
    
    <div class="clr"> </div>

	<table class="adminlist" style="width: 100%;">
		<thead>
			<tr>
            <th width="5%">
					<input type="checkbox" name="checkall-toggle" value="" title="Check All" onclick="Joomla.checkAll(this)" />				
                </th>
				<th width="10%">
					<label class="labelth">指導員コード</label>				
                </th>
				<th width="20%">
					<label class="labelth">指導員名</label>		
                </th>
				<th width="20%">
					<label class="labelth">所属</label>		
                </th>
				<th width="10%">
					<label class="labelth">資格コード</label>	
                </th>
				<th width="15%">
					<label class="labelth">指導者種別</label>
                </th>
               	<th width="25%">
					<label class="labelth">研修場所</label>
                </th>
              
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="15">
				    <?php echo $this->pagination->getListFooter(); ?>	
                </td>
			</tr>
		</tfoot>
		<tbody>
            <?php 
                $rows = $this->rows;
                if($rows != null){
                    foreach($rows as $k=>$row){
            ?> 
    		  <tr class="row<?php echo $k%2?>">
    			<td class="center">
                    <input type="checkbox" id="cb<?php echo $row->COLI_CODE ?>" name="cid[]" value="<?php echo $row->COLI_CODE ?>" onclick="Joomla.isChecked(this.checked);" />
                </td>
    			<td class="center"><a href="#" onclick="document.id('cb<?php echo $row->COLI_CODE; ?>').checked=true;Joomla.submitbutton('edit');"><?php echo $row->COLI_COCH_CODE; ?></a></td>
    			<td class="left"><a href="#" onclick="document.id('cb<?php echo $row->COLI_CODE; ?>').checked=true;Joomla.submitbutton('edit');"><?php echo $row->COCH_NAME; ?></a></td>
    			<td>
                    <?php
                        $model = $this->getModel();
                       echo $model->getNameCenterClub($row->COCH_OCBA_CODE);
                    ?>
                    
                </td>
                <td class="center"><?php echo $row->COLI_CODE; ?></td>
                <td class="center"><?php echo $row->COCM_NAME; ?></td>
                <td><?php echo $row->OCBA_NAME; ?></td>
    		  </tr>
          <?php
                }
            }else{
          ?>
                <tr>
                    <td class="center" colspan="6">データは見つかりませんでした</td>
                </tr>
          <?php    
            }
          ?>
		</tbody>
	</table>
	<div>
		<input type="hidden" name="task" value="" />
		<input type="hidden" name="boxchecked" value="" />
	</div>
</form>

<script>
Joomla.submitbutton = function(task){
    if(task == 'remove'){
        if(!confirm('選択したデータを削除します。よろしいですか？')){
            return false;
        }
    }
       
       Joomla.submitform(task, document.getElementById('adminForm'));
       
 }
</script>